package com.tanchengjin.admin.modules.blog.validations;

import javax.validation.constraints.NotEmpty;

/**
 * 小程序认证参数校验
 */
public class MiniProgramAuthenticationValidate {
    @NotEmpty
    private String code;
    private UserInfo userInfo;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public class UserInfo {
        //用户头像
        private String avatarUrl;
        //oauth中的用户名
        private String nickName;
        //性别,0未知、1男、2女
        private int gender;

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }
    }
}
